import { IRepairDesc, IRepairLogReq } from "../RequestIDL/repairLogType";
import createReq from "../request";
import { Method } from "../type";

// 分页查询报修接口
export const repairLogQueryBatch = (data: IRepairLogReq) => {
  return createReq({
    method: Method.POST,
    url: "/repair/searchByConditionPage",
    data,
  });
};
// 开始维修接口
export const beginRepair = (data: any) => {
  return createReq({
    method: Method.POST,
    url: "/repair/beginRepair",
    data,
  });
};
// 结束维修接口
export const finishRepair = (data: any) => {
  return createReq({
    method: Method.POST,
    url: "/repair/finishRepair",
    data,
  });
};
// 新增报修接口
export const newRepairLog = (data: IRepairDesc) => {
  return createReq({ method: Method.POST, url: "/repair/add", data });
};
// // 单个查询报修就接口
// export const queryRepairLog = (id: string) => {
//   return createReq({ method: Method.GET, url: "/repair/log" });
// };
